<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title></title>
    <link rel="stylesheet" href="css/dafeiji.css"/>

    <script type="text/javascript" src="js/common.js"></script>
    <script type="text/javascript" src="js/gameEngine.js"></script>
    <script type="text/javascript" src="js/myPlane.js"></script>
    <script type="text/javascript" src="js/bullet.js"></script>
    <script type="text/javascript" src="js/enemy.js"></script>
    <script type="text/javascript" src="js/ajax.js"></script>

    <script>
        onload = function () {

            var oList = document.getElementById("list");
            var aLi = document.getElementsByTagName("li");
            for (var i = 0; i < aLi.length; i++) {
                //点击li
                aLi[i].onclick = function () {

                    //进入游戏加载页面
                    //先清除ul
                    oList.parentNode.removeChild(oList);
                   // console.log(this.value);

                    //开始游戏
                    //获取value值(发射子弹的频率)
                    var rate = this.value;
                    gameEngine.init().start(rate);

                }
            }

        }
    </script>
    <script src="js/gameEngine.js"></script>
</head>
<body>
<div id="main" class="main">
    <ul id="list">
        <li value="800">超级困难</li>
        <li value="600">非常困难</li>
        <li value="400">比较困难</li>
        <li value="200">春哥附体</li>
    </ul>
    <!--<div class="bulletDiv">-->
    <!--<input type="button" value="单发"/>-->
    <!--<input type="button" value="散弹"/>-->
    <!--<input type="button" value="蛇弹"/>-->
    <!--<input type="button" value="随机"/>-->
    <!--</div>-->
</div>
</body>
</html>
